<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>

<head>
<!--    http://fund.eastmoney.com/Data/FundDataPortfolio_Interface.aspx?dt=14&mc=returnjson&ft=all&pn=2160&pi=1&sc=abbname&st=asc 基金经理接口-->
<!--    http://fund.eastmoney.com/pingzhongdata/161725.js 基金高级信息接口-->
<!--    http://j4.dfcfw.com/charts/pic6/161725.png 基金实时走势图接口-->
<!--    http://fundgz.1234567.com.cn/js/161725.js 基金基本信息接口-->
    <meta charset="UTF-8">
    <link href="${pageContext.request.contextPath}/image/logo.png" rel="Shortcut Icon">
    <title>阿里云API</title>
<%
    String[] fundId = {"000127","660001","660003","007685","512760","515880","007853","009170"};
    for (int i = 0; i < fundId.length; i++) {
%>
    <link rel="stylesheet" href="Resource/layui/css/layui.css">
    <script src="Resource/layui/layui.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://fund.eastmoney.com/Data/FundDataPortfolio_Interface.aspx?dt=14&mc=returnjson&ft=all&pn=2160&pi=1&sc=abbname&st=asc"></script>
    <script src="http://fund.eastmoney.com/pingzhongdata/<%=fundId[i]%>.js"></script>

    <script type="text/javascript">
        jsonpgz = function(data){
            for (var i=0; i<Data_netWorthTrend.length ;i++){
                //基金净值变化
                $.ajax({
                    async:false,
                    type:"POST",
                    url:"./getFundValueChangeData.do",
                    data:{
                        fvcDate:Data_netWorthTrend[i].x,
                        fvcDwjz:Data_netWorthTrend[i].y,
                        fId:data.fundcode,
                        fvcChange:Data_netWorthTrend[i].equityReturn,
                        length:Data_netWorthTrend.length //基金变化数据长度
                    }
                });
            }
        }
    </script>
<!--    引入这个文件，然后这个jsonpgz的方法，这个参数就是里面的对象json-->
    <script>

    </script>
<!--    ↓这种api其实是调用方法，所以要放下面，放上面没得方法调用-->
    <script src="http://fundgz.1234567.com.cn/js/<%=fundId[i]%>.js"></script>
<%
    }
%>
</head>

<body>
<header>阿里云API测试</header>
<img src="http://j4.dfcfw.com/charts/pic6/161725.png"/>
</body>

</html>
